package file;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 74646
 * Date: 2022-06-21
 * Time: 19:19
 */

// 按照字符进行写文件
public class Demo12 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("F:/文件读写测试/t2.txt")){
            writer.write("CSDN@潇湘夜雨");
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
